import EL_father_container from '../components/container/EL_father_container.vue'


export const menuroutes = [{
        path: '/404',
        component: EL_father_container,
        meta: {
            title: "首页",
            hidden: true
        },
        // redirect: '/index',
        children: [{
            path: 'index',
            component: () =>
                import ('../views/BooK_index.vue'),
            meta: {
                title: "仪表盘"
            }
        }]
    },
    {
        path: '/article',
        component: EL_father_container,
        meta: {
            title: "文章管理"
        },
        children: [{
            path: 'category',
            component: () =>
                import ('../views/BooK_category.vue'),
            meta: {
                title: "类别管理"
            }
        }, {
            path: 'author',
            component: () =>
                import ('../components/NotFound.vue'),
            meta: {
                title: "作者管理"
            }
        }, {
            path: 'publisher',
            component: () =>
                import ('../components/NotFound.vue'),
            meta: {
                title: "出版管理"
            }
        }]
    },
    {
        path: '/system',
        component: EL_father_container,
        meta: {
            title: "系统管理"
        },
        children: [{
                path: 'user',
                component: () =>
                    import ('../components/container/User_Home/UserInfo.vue'),
                meta: {
                    title: "用户管理"
                },
                children: [{
                        path: 'avatar',
                        component: () =>
                            import ('../views/UserAvatar.vue'),
                        meta: {
                            title: "头像管理"
                        }
                    },
                    {
                        path: 'friend',
                        component: () =>
                            import ('../components/NotFound.vue'),
                        meta: {
                            title: "好友管理"
                        }
                    },
                    {
                        path: 'center',
                        component: () =>
                            import ('../components/NotFound.vue'),
                        meta: {
                            title: "个人中心"
                        }
                    }
                ]
            },
            {
                path: 'role',
                component: () =>
                    import ('../components/NotFound.vue'),
                meta: {
                    title: "角色管理"
                },
                children: [{
                        path: 'list',
                        component: () =>
                            import ('../components/NotFound.vue'),
                        meta: {
                            title: "列表"
                        }
                    },
                    {
                        path: 'permission',
                        component: () =>
                            import ('../components/NotFound.vue'),
                        meta: {
                            title: "权限"
                        }
                    }
                ]
            },
            {
                path: 'menu',
                component: () =>
                    import ('../components/NotFound.vue'),
                meta: {
                    title: "菜单管理"
                }
            }
        ]
    },
    {
        path: '/users',
        component: EL_father_container,
        meta: {
            title: "用户管理"
        },
        children: [{
            path: "userslist",
            component: () =>
                import ('../views/UserList.vue'),
            meta: {
                title: "用户列表"
            }
        }]
    }
]



export const routes = [{
        path: '/login',
        component: () =>
            import ('../views/LoginOrRegister.vue')
    },
    {
        path: '/index',
        component: EL_father_container
    },
    {
        path: '/notfound',
        component: () =>
            import ('../components/NotFound.vue')
    },
    //菜单栏路由数据
    // menuroutes[0]
]